package com.yzh.animal.teacher;

public class Animal extends Object {
    private String color;//颜色
    private int age;//年龄
    public Animal(){

    }
    public Animal(String color,int age){
        this.color = color;
        this.age = age;
    }

    public void eat(){
        System.out.println("-------eating--------");
    }

    public void rest(){
        System.out.println("-------resting--------");
    }
}
